package com.suning.web;

import com.opensymphony.xwork2.Action;

public class LoginAction{

	private static final long serialVersionUID = 1L;
	private LoginForm form;
	
	
	public String execute() throws Exception {
		/*
		List<Money> moneyList1=new ArrayList<Money>();
		moneyList1.add(new Money("money1","moneyName1"));
		moneyList1.add(new Money("money2","moneyName2"));
		moneyList1.add(new Money("money3","moneyName3"));
		
		Student s1=new Student("Jack");
		s1.setMonList(moneyList1);
		
		List<Money> moneyList2=new ArrayList<Money>();
		moneyList2.add(new Money("money4","moneyName4"));
		moneyList2.add(new Money("money5","moneyName5"));
		moneyList2.add(new Money("money6","moneyName6"));
		Student s2=new Student("Lick");
		s2.setMonList(moneyList2);
		
		List<Student> stuList=new ArrayList<Student>();
		stuList.add(s1);
		stuList.add(s2);
		
		form=new LoginForm(); 
		form.setId("form1");
		form.setName("formName");
		form.setSex("formSex");
		form.setList(stuList);
		*/
		System.out.print(form);
		return Action.SUCCESS;
	}

	public LoginForm getForm() {
		return form;
	}

	public void setForm(LoginForm form) {
		this.form = form;
	}

}
